package com.example.demo.design;

/**
 * 蔡定努
 * 2025/05/14 16:03
 */
public class DogAdopter implements Line{
    Dog dog;
    @Override
    public void ao() {
       dog.bark();
    }

    public DogAdopter(Dog dog) {
        this.dog = dog;
    }
}
